package com.chapter.sample.redis.controller;

import com.chapter.sample.redis.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class InventoryController {

    @Autowired
    private InventoryService inventoryService;
    @RequestMapping("/inventory/sale")
    public String sale() {
        return inventoryService.sale();
    }

    @RequestMapping("/inventory/saleRedisson")
    public String saleRedisson() {
        return inventoryService.saleRedisson();
    }
}
